@import "../../styles/variable";
$wrapper-prefix-cls: #{$prefix}-view-wrapper;
$chart-prefix-cls: #{$prefix}-chart;

.#{$wrapper-prefix-cls} {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: $border;
  border-radius: $box-radius;

  &:hover {
    // border: 1px dashed $color-primary;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 12px 24px 0 rgba(170, 182, 206, 0.36);
    border-radius: $box-radius;

    .#{$prefix}-chart-options {
      visibility: visible;
    }
  }
}

.#{$prefix}-chart-controls-ct {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.#{$prefix}-draggable-handle {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  font-size: 20px;
  cursor: move;

  &:hover {
    color: $color-primary;
  }
}

.#{$chart-prefix-cls} {
  position: relative;
  flex: 1;
  padding: 8px 24px;
  overflow: auto;

  .dark-row {
    background: $table-gray;
  }

  &-header {
    padding: 8px 12px;

    &.active:hover {
      background-color: $color-primary-04;
    }
  }

  &-title {
    margin: 0;
    color: $color-text;
    font-weight: 700;
    font-size: 14px;
  }
}

.pk-dropdown-menu-item > .dc-chart-title-dp-op {
  display: flex;
  justify-content: center;
  align-items: center;
  color: $color-text-sub;

  .dc-iconfont {
    margin-right: 8px;
  }
}
